<template>
	<view class="user-content_header">
		<view class="user-content_header-left">
			<image class="user-content_header-left-img" src="../../../static/user.png" mode=""></image>
			登录/注册
		</view>
		<view class="user-content_header-right">
			<text class="iconfont icon-erweima"></text>
			<!-- <image class="user-content_header-right-img" src="../../static/weixincode.png" mode="aspectFit"></image> -->
		</view>
		<!-- <view class="user-content_header-pos"> -->
		<view class='user-content_header-pos'>
			<view class='user-content_header-pos-item' >
				<text class="user-content_header-pos-item_pre colorRed">￥</text>
				<text class="user-content_header-pos-item_value colorRed">{{userCount.money }}</text>
				<br />
				<text class="user-content_header-pos-item_name">钱包余额</text>
			</view>
			<view class='user-content_header-pos-item'  @click="openMyCoupon">
				<text class="user-content_header-pos-item_value" >{{userCount.youhui}}</text>
				<br />
				<text class="user-content_header-pos-item_name">优惠券</text>
			</view>
			<view class='user-content_header-pos-item'  >
				<text class="user-content_header-pos-item_value" >{{userCount.lipin}}</text>
				<br />
				<text class="user-content_header-pos-item_name">储值卡+礼品卡</text>
			</view><view class='user-content_header-pos-item'  >
				<text class="user-content_header-pos-item_value" >{{userCount.jifen}}</text>
				<br />
				<text class="user-content_header-pos-item_name">积分</text>
			</view>
		</view>
		<!-- </view> -->
	</view>
</template>

<script>
	export default {
		props:{
			userCount:{type:Object,
			default:{}}
		},
		data() {
			return {
			}
		},
		methods:{
			openMyCoupon(){
				uni.navigateTo({
					url:'/pages/myCoupon/myCoupon'
				})
			}
		}
		
	}
</script>

<style>
	/* header登录注册及悬浮的信息 */
	.user-content_header {
		padding: 0 15px;
		background-color: #FF3043;
		font-size: 16px;
		position: relative;
		height: 115px;
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding-top: 15px;
		font-size: 14px;
	}

	.user-content_header-left {
		color: #fff;
		font-size: 18px;
		display: flex;
		align-items: center;
	}

	.user-content_header-left-img {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		overflow: hidden;
		margin-right: 6px;
	}

	.user-content_header-right {
		width: 50px;
		height: 50px;
		text-align: center;
		line-height: 50px;
		background: #e9caca;
		opacity: .9;
		border-radius: 8px;
	}

	.icon-erweima {
		font-size: 40px;
		color: #fff;
	}

	.user-content_header-right-img {
		width: 100%;
		height: 100%;
	}

	.user-content_header-pos {
		position: absolute;
		top: 76px;
		width: 90%;
		background-color: #fff;
		left: 0;
		right: 0;
		margin: 0 auto;
		height: 80px;
		border-radius: 10px;
		padding: 10px 15px;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		align-items: center;

	}

	.user-content_header-pos-item {
		text-align: center;
		line-height: 24px;
	}

	.user-content_header-pos-item_pre {
		font-size: 12px;
		font-weight: bold;
	}

	.user-content_header-pos-item_value {
		font-weight: bold;
	}

	.user-content_header-pos-item_name {
		color: #666666;
	}

	/* header登录注册及悬浮的信息end */
</style>
